.goods-list {
  background: #f5f5f5;
  height: 100vh;

  .theme-color {
    color: #12b3ff;
  }
  .theme-color-2 {
    color: #333;
  }
  .theme-color-3 {
    color: #999;
  }
  .goods-list-bd {
    padding-top: 274px;
  }
  .goods-list-pop {
    top: 274px;
    height: calc(100vh - 274px);
  }
  &.hide-rule {
    .goods-list-bd {
      padding-top: 180px;
    }
    .goods-list-pop {
      top: 180px;
      height: calc(100vh - 180px);
    }
  }
  &.has-rule {
    .goods-list-bd {
      padding-top: 432px;
    }
    .goods-list-pop {
      top: 430px;
      height: calc(100vh - 430px);
    }
  }
}

.goods-list-switch {
  padding: 18px 24px;
  box-sizing: border-box;
  background: #fff;
  height: 100px;
  .theme-color,
  .theme-color-3 {
    padding-left: 12px;
    font-size: 24px;
  }
  .at-col {
    display: flex;
    align-items: center;
  }
}
.goods-list-rule {
  padding: 0 24px 32px;
  box-sizing: border-box;
  background: #fff;
  .theme-color {
    font-size: 42px;
    text-align: center;
    line-height: 60px;
    padding-bottom: 12px;
  }
  .theme-color-2 {
    color: #333;
    font-size: 24px;
    text-align: center;
  }
}

.goods-list-hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: #f5f5f5;
  // margin-bottom: 24px;
}

.goods-list-item,
.goods-list-query {
  background: #fff;
}
.goods-list-query {
  height: 80px;
  width: 100vw;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 25%);
  grid-template-rows: repeat(4, 100%);
  &.col-3 {
    grid-template-columns: repeat(3, 33.33%);
    grid-template-rows: repeat(3, 100%);
  }
  &.col-2 {
    grid-template-columns: repeat(2, 50%);
    grid-template-rows: repeat(2, 100%);
  }
  &.col-1 {
    grid-template-columns: repeat(1, 100%);
    grid-template-rows: repeat(2, 100%);
  }
  &-li {
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 26px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    &.act {
      .goods-list-query-name {
        color: #12b3ff;
      }
    }
  }
  &-name {
    margin-right: 10px;
    // max-width: 124px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .goods-list-sort {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;

    &.act-up {
      &::before {
        border-bottom-color: #12b3ff;
      }
    }
    &.act-down {
      &::after {
        border-top-color: #12b3ff;
      }
    }

    &::before,
    &::after {
      content: "";
      display: block;
      border-width: 8px;
      border-style: solid;
      margin: 2px 0;
    }

    &::before {
      border-color: transparent transparent #333 transparent;
    }
    &::after {
      border-color: #333 transparent transparent transparent;
    }
  }
}
.goods-list-query-list {
  flex: 1;
}

.goods-list-bd {
  position: relative;

  .goods-list-item {
    &::after {
      content: "已经到底了~";
      font-size: 24px;
      color: #999;
      display: flex;
      justify-content: center;
      padding: 24px 0;
      background: #f5f5f5;
    }
    &-li {
      display: flex;
      padding: 24px 24px 24px 0;
      margin-left: 24px;
      &:not(:last-child) {
        border-bottom: 1px solid #e5e5e5;
      }

      &__img {
        width: 204px;
        height: 204px;
        display: block;
        flex-shrink: 0;
        margin-right: 24px;
      }
      &__content {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        &-title {
          line-height: 40px;
          font-size: 28px;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          text-overflow: ellipsis;
          overflow: hidden;
        }
        &-rule {
          border-radius: 12px;
          // height: 88px;
          font-size: 22px;
          margin: 12px 0;
					.self-row{
						height: 100%;
            align-items: center;
            text-align: center;
						flex-wrap: wrap;
						.self-col {
							display: flex;
							align-items: center;
							justify-content: center;
							width:33.33% !important;
							background: #f5f5f5;
							flex-direction: column;
							min-height: 88px;
              position: relative;
							margin-bottom: 10px;
              &::before {
                position: absolute;
                left: 0;
                top: 50%;
                margin-top: -15px;
                content: "";
                width: 2px;
                height: 30px;
                background-color: #e5e5e5;
                display: none;
              }
              &:not(:first-child) {
                &::before {
                  display: block;
                }
              }
            }
					}
          .at-row {
            height: 100%;
            align-items: center;
            text-align: center;
            .at-col {
              position: relative;
              &::before {
                position: absolute;
                left: 0;
                top: 50%;
                margin-top: -15px;
                content: "";
                width: 2px;
                height: 30px;
                background-color: #e5e5e5;
                display: none;
              }
              &:not(:first-child) {
                &::before {
                  display: block;
                }
              }
            }
          }
        }
        &-price {
          display: flex;
          align-items: baseline;
          flex-direction: column;
          &-warranty {
            display: inline-block;
            color: #ff7026;
            font-size: 22px;
            background: #ffe6d9;
            border-radius: 12px;
            padding: 5px 20px;
          }
          .price-1 {
            font-size: 42px;
            color: #ff3b30;
            padding-right: 12px;
            &:first-letter {
              font-size: 20px;
            }
          }
          .price-area {
            font-size: 26px;
            margin-left: 5px;
          }
          .price-2 {
            color: #999999;
            font-size: 20px;
            text-decoration: line-through;
          }
        }
      }
    }
  }
}

.goods-list-pop {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;

  overflow: hidden;
  &-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  &-item {
    position: relative;
    background-color: #fff;
    z-index: 2;
  }
  &-li {
    border-top: 1px solid #f5f5f5;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 26px;
    color: #333;
    &::after {
      content: "";
      border-style: solid;
      border-width: 0px;
      border-color: transparent transparent #12b3ff #12b3ff;
      transform: rotate(-45deg);
      transition: height 1s 0s linear, width 1s 1s linear;
    }
    &.act {
      &::after {
        width: 16px;
        height: 6px;
        border-width: 2px;
      }
    }
  }
}

.filter-popview {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  // display: none;
  visibility: hidden;
  transition: visibility 0.5s 0s ease;
  &.show {
    // display: block;
    visibility: visible;
    .filter-popview-content {
      transform: translate3d(0%, 0, 0);
    }
  }
  .filter-popview-mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba($color: #000000, $alpha: 0.7);
  }
  .filter-popview-wrap {
    height: calc(100vh - 128px - 64px);
    overflow-y: auto;
  }
  .filter-popview-content {
    position: absolute;
    z-index: 1;
    background: #fff;
    width: 80vw;
    height: 100vh;
    box-sizing: border-box;
    transition: transform 0.5s 0s ease;
    transform: translate3d(100%, 0, 0);
    &.right {
      right: 0;
    }
    &.left {
      left: 0;
    }
    .btn-group {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 24px;
      display: flex;
      box-sizing: border-box;
      .btn {
        flex: 1;
        width: 50%;
        height: 80px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        color: #12b3ff;
        border: 2px solid #12b3ff;
        box-sizing: border-box;
        border-radius: 4px;
        &:not(:first-child) {
          margin-left: 20px;
          background-color: #12b3ff;
          color: #fff;
        }
      }
    }
    &-title {
      width: 100%;
      height: 64px;
      background: #f5f5f5;
      display: flex;
      align-items: center;
      padding: 0 24px;
      box-sizing: border-box;
    }
    &-property {
      .title {
        display: flex;
        align-items: center;
        font-size: 24px;
        color: #333;
        padding: 24px;
        box-sizing: border-box;
        &::before {
          content: "";
          width: 10px;
          height: 10px;
          background: #12b3ff;
          border-radius: 50%;
          margin-right: 12px;
          display: block;
        }
      }
    }
  }
  .filter-popview-item {
    display: flex;
    flex-wrap: wrap;
    margin-top: -24px;
    margin-left: -24px;
    padding: 0 24px;
    box-sizing: border-box;
    // width: calc(100% - 18px);
  }
  .filter-popview-li {
    margin-left: 24px;
    margin-top: 24px;
    height: 64px;
    min-width: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 6px;
    background: rgba(245, 245, 245, 1);
    border: 2px solid rgba(245, 245, 245, 1);
    font-size: 24px;
    color: #999999;
    &.act {
      background: rgba(208, 240, 255, 1);
      border: 2px solid rgba(18, 179, 255, 1);
      color: #12b3ff;
    }
  }
}
.img-block {
  width: 204rpx;
  height: 204rpx;
  margin-right: 24rpx;
  position: relative;
  .goods-list-item-position {
    position: absolute;
  }
}
